package com.wangzhixuan.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhixuan.wang
 * @since 2017-08-16
 */
@TableName("job_rank")
public class Rank extends Model<Rank> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	@TableField("user_id")
	private Integer userId;
	@TableField("succeed_num")
	private Integer succeedNum;
    /**
     * 按时成功完成
     */
	private Integer totalOnTimeNum;
    /**
     * 延时成功完成
     */
	@TableField("delaytime_num")
	private Integer delaytimeNum;
    /**
     * 失败未完成
     */
	@TableField("fail_num")
	private Integer failNum;
	private Integer ranking;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getSucceedNum() {
		return succeedNum;
	}

	public void setSucceedNum(Integer succeedNum) {
		this.succeedNum = succeedNum;
	}

	public Integer getTotalOnTimeNum() {
		return totalOnTimeNum;
	}

	public void setTotalOnTimeNum(Integer totalOnTimeNum) {
		this.totalOnTimeNum = totalOnTimeNum;
	}

	public Integer getDelaytimeNum() {
		return delaytimeNum;
	}

	public void setDelaytimeNum(Integer delaytimeNum) {
		this.delaytimeNum = delaytimeNum;
	}

	public Integer getFailNum() {
		return failNum;
	}

	public void setFailNum(Integer failNum) {
		this.failNum = failNum;
	}

	public Integer getRanking() {
		return ranking;
	}

	public void setRanking(Integer ranking) {
		this.ranking = ranking;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
